package com.webware.one.client;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.webware.one.shared.dto.UserDto;

public interface GwtRpcServiceAsync {

    void test(AsyncCallback<Void> callback);

    void getCurrentUser(AsyncCallback<UserDto> callback);

    void saveUser(UserDto user, AsyncCallback<Long> callback);

    void logout(AsyncCallback<Void> callback);

    void saveUser(UserDto user, String password, AsyncCallback<Long> callback);
}
